module TeamsHelper
  def team_pic(team)
    image_tag(team.pic || "team.gif",:alt=>h(team.name))
  end

  def team_detail(team)
    str = content_tag(:p,team_pic(team),:style=>"text-align:center")
    str << content_tag(:p,h(team.displayed_name),:style=>"text-align:center")
  end
end
